xen/arm: p2m: Introduce a helper to generate P2M table entry from a page
authorJulien Grall <julien.grall@arm.com>
Mon, 8 Oct 2018 18:33:42 +0000 (19:33 +0100)
committerJulien Grall <julien.grall@arm.com>
Thu, 22 Nov 2018 14:17:41 +0000 (14:17 +0000)
commite03885248cb965ed23b51df0c044a762c7d339ad
tree60cf0d9e3674040503a18363f1ddf3b267e7e034
parent9d04af3c7cce5b76a733d255baa6933b4092f961
xen/arm: p2m: Introduce a helper to generate P2M table entry from a page

Generate P2M table entry requires to set some default values which are
worth to explain in a comment. At the moment, there are 2 places where
such entry are created but only one as proper comment.

So move the code to generate P2M table entry in a separate helper.
This will be helpful in a follow-up patch to make modification on the
defaults.

At the same time, switch the default access from p2m->default_access to
p2m_access_rwx. This should not matter as permission are ignored for
table by the hardware.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c